//
//  UserAccountViewModel.h
//  weibo110
//
//  Created by 臧松 on 15/12/28.
//  Copyright © 2015年 臧松. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserAccount.h"
@interface UserAccountViewModel : NSObject
@property (nonatomic,strong) UserAccount * account;

//用户登录标记
@property (nonatomic,readonly,getter=isUserLogon) BOOL userLogon;

// 用户头像 url
@property (nonatomic,strong) NSURL * avatar;

// 返回有效的 Token
@property (nonatomic,copy) NSString * accessToken;

// 加载 Token 方法
-(void)loadAccountTokenCode:(NSString*)code finished:(void (^)(BOOL isSuccessed))finished;

// 用户单例方法
+(instancetype)shareUserAccount;
@end
